package com.general.hello.starter.config;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.autoconfigure.condition.ConditionalOnNotWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: HelloConfiguration
 * @author: general
 * @version: 1.0
 * @create: 2021-09-12 11:08
 **/
@Configuration
@ConditionalOnNotWebApplication
public class HelloConfiguration {

    @Bean
    public ApplicationRunner applicationRunner(){
        return args -> System.out.println("hello starter run success....");
    }
}
